package list_Node;
//206. 反转链表
public class Num206_reverseList {
    public ListNode reverseList(ListNode head) {
        if (head==null||head.next==null){
            return head;
        }
        ListNode sc=head.next;
        ListNode newHead=reverseList(head.next);
        sc.next=head;
        head.next=null;
        return newHead;
    }
}
